import sys
import os

from scrapy.cmdline import execute


sys.path.append(os.path.dirname(os.path.abspath(__file__)))
execute(["scrapy", "crawl", "taobao"])
# execute(["scrapy", "crawl", "jindong"])


if __name__ == "__main__":
    pass
    # img = "https://gd2.alicdn.com/imgextra/i4/881466827/TB2dwNUlY_I8KJjy1XaXXbsxpXa_!!881466827.jpg_400x400.jpg_.webp"
    # print(img.replace("_400x400.jpg_.webp", ""))
    # for index, item in enumerate([1,2,3,4]):
    #     print(index)
    # try:
    #    a = 1
    #    b = 1/0
    # except Exception as e:
    #     print(e)
    # finally:
    #     if b:
    #         print(b)

    # a = {"a":1}
    # print(a.get("b",None))















